<?php
namespace app\common\middleware;


class InitSystem
{
	/**
	 * @param $request
	 * @param \Closure $next
	 */
	public function handle($request, \Closure $next)
	{
        //注册插件目录
        bind('appin_path', function(){
            return app()->getRootPath() . '/../appin/';
        });

		return $next($request);
	}
}
